
//随机颜色
let x=Math.random().toString(16).slice(-6)
//随机6位数
let y=Math.random().toString(36).slice(-6)

console.log( "#"+x,y);
let arr:number[]=[1,5,1,8]
function More(){
  
}
More()

//unite([1,3,2],[5,2,1,4],[2,1])
//计算它的长度
let str:string="The quick brown fox jumped over the lazy dog."
function findLongestWord(){
    let strLength: number = (str as string).length;
    console.log(strLength);
    
}
findLongestWord()
//数组中的最大值 
let points:number[] = [40, 100, 1, 5, 25, 10];
function GetMax(){
  let len=points.length
  let max=-Infinity;
  while (len--){
      if(points[len]>max){
          max=points[len]
         
      }
  }
  return max
 
}
GetMax()
console.log(GetMax());
